// 引入
// const API = require("../../common/api")
// 使用
// API.BASEURL
// API.SOCKETURL
// API.UPLOADURL

// 手动修改当前环境
const apiMode = "prod" // 线上生产环境
//const apiMode = "dev" // 本地测试环境

// 接口请求地址
// const BASEURL_PROD = "http://118.178.127.161:8899"
const BASEURL_PROD = "https://wdn.jchcloud.com/prod-api"
// const BASEURL_DEV = "https://if0hawh3qexl.ngrok.xiaomiqiu123.top"
const BASEURL_DEV = "http://127.0.0.1:8080"
// socket请求地址
const SOCKETURL_PROD = "wss://wdn.jchcloud.com/webSocket"
// const SOCKETURL_DEV = "wss://if0hawh3qexl.ngrok.xiaomiqiu123.top/webSocket"
const SOCKETURL_DEV = "ws://127.0.0.1:8080/webSocket"
// 文件上传地址
const UPLOADURL_PROD = "https://wdn.jchcloud.com/prod-api/"
//const UPLOADURL_DEV = "https://if0hawh3qexl.ngrok.xiaomiqiu123.top"
const UPLOADURL_DEV = "http://127.0.0.1:8080"
// 图片访问地址 https://wdn.jchcloud.com/prod-api/profile/wxStaticImg/
const REQUESTIMGURL_PROD = "https://wdn.jchcloud.com/prod-api"
//const REQUESTIMGURL_DEV = "https://if0hawh3qexl.ngrok.xiaomiqiu123.top"
const REQUESTIMGURL_DEV = "http://127.0.0.1:8080"
const REQUESTURL = 'https://wdn.jchcloud.com'

const BASEURL = apiMode == "prod" ? BASEURL_PROD : BASEURL_DEV
const SOCKETURL = apiMode == "prod" ? SOCKETURL_PROD : SOCKETURL_DEV
const UPLOADURL = apiMode == "prod" ? UPLOADURL_PROD : UPLOADURL_DEV
const REQUESTIMGURL = apiMode == "prod" ? REQUESTIMGURL_PROD : REQUESTIMGURL_DEV
export {
	BASEURL,
	SOCKETURL,
	UPLOADURL,
	REQUESTIMGURL,
	REQUESTURL
}